<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>登录</title>
  <link rel="stylesheet" href="/css/bootstrap.css">
  <link rel="stylesheet" href="/css/style.css">
  <script src="/js/bootstrap.bundle.js"></script>
</head>
  <div class="page">
        <div class="col-lg-4 col-6 border rounded shadow"
             style=" background-color: #f2f2f2; padding: 20px; min-width: 450px">
          <h3 class="text-center">用户登录</h3><br>
          <form action="/login" method="post">
            <div class="form-group">
              <label for="username">用户名:</label>
              <input type="text" class="form-control" id="username" name="username" placeholder="请输入账号" required><br>
              <label for="password">密码:</label>
              <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码" required><br>
            </div>
            <button type="submit" class="btn btn-primary">
              登录
            </button>
          </form>
          <div th:if="${error}">
            <p style="color: red;">非法的用户名或密码！</p>
          </div>

        </div>
      </div>
</html>
